<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/4/9
 * Time: 11:00
 */

function change_city($city){
    switch ($city)
    {
        case 'beijing':
            return '北京';
            break;
        case 'shanghai':
            return '上海';
            break;
        default:
            return '';
    }
}

function change_network_type($s_network_type){
    switch ($s_network_type)
    {
        case 'jingdian_network':
            return '经典网络';
            break;
        case 'VPC':
            return 'VPC';
            break;
        default:
            return '';
    }
}

return [
  'useInternal' => env('oss_useInternal',false),//是否使用OSS内网传输来省流量
  'city' => change_city(env('oss_city')),
  'networkType' => change_network_type(env('oss_networkType')),
  'isInternal' => env('oss_isInternal',0), //是否启用内网
  'AccessKeyId' => env('oss_AccessKeyId',''),// 请填写您的AccessKeyId。
  'AccessKeySecret' => env('oss_AccessKeySecret',''),// 请填写您的AccessKeySecret。
  'bucket'=>env('oss_bucket','')// 请填写您的bucket
];

